
package nccloud.web.arap.manual.action;

import nc.vo.arap.manualcost.AggManualCostVO;
import nc.vo.pub.BusinessException;
import nc.vo.pubapp.pattern.model.entity.bill.IBill;
import nccloud.framework.core.exception.ExceptionUtils;
import nccloud.framework.service.ServiceLocator;
import nccloud.itf.arap.manual.aggmanualcostvo.IManualcostvoService;
import nccloud.web.arap.manual.action.base.BaseDeleteAction;

/**
* @description 一主多子删除
* @version ncc1.0
**/
public class DeleteAction extends BaseDeleteAction {

    @Override
    public void delete(IBill bill) {
        try {
            IManualcostvoService service = ServiceLocator.find(IManualcostvoService.class);
             service.delete(( nc.vo.arap.manualcost.AggManualCostVO) bill);
        } catch (BusinessException e) {
            ExceptionUtils.wrapException(e);
        }
    }

    @SuppressWarnings("rawtypes")
    @Override
    public Class getClazz() {
        return nc.vo.arap.manualcost.AggManualCostVO.class;
    }
}
